from celery_tasks.main import app


# 添加装饰器，方法才能成为celery的任务
@app.task(name='send_sms_code')
def send_sms_code(mobile, code):
    # 调用第三方sdk发短信
    print(code)
